wallthickness_mount = 2 --taken from strykercode as a starting point

fn createScrewMount x y someObject =
(
motorHoleRadius1 = 3.2/2 --actual = 3 adding fudge 
motorHoleRadius2 = 6.2/2 --actual = 6 adding fudge
	
aHole =	Cone smooth:on heightsegs:5 capsegs:1 sides:24 height:wallthickness_mount radius1:motorHoleRadius1 radius2:motorHoleRadius2 mapcoords:on pos:[x,y,0] isSelected:on
ProBoolean.CreateBooleanObject someObject aHole 0 0 1	
)

fn createMotorMount =
(

motorHolesRadius = 7.7/2
xSeparation = 19
ySeparation = 16
	
-- base = Cylinder smooth:on heightsegs:1 capsegs:1 sides:25 height:wallthickness_mount radius:baseCylinderRadius mapcoords:on pos:[0,0,0] isSelected:on
motorHoles = Cylinder smooth:on heightsegs:1 capsegs:1 sides:25 height:wallthickness_mount radius:motorHolesRadius mapcoords:on pos:[0,0,0] isSelected:on	
-- ProBoolean.CreateBooleanObject base motorHoles 2 0 1	

createScrewMount 0 (ySeparation/2.0) motorHoles
createScrewMount 0 (-ySeparation/2.0) motorHoles
createScrewMount (xSeparation/2.0) 0 motorHoles
createScrewMount (-xSeparation/2.0) 0 motorHoles

return motorHoles
)